package net.xiangcaowuyu.dubboprovider.controller;

import net.xiangcaowuyu.dubboprovider.service.GoodService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 博客：https://www.xiangcaowuyu.net
 * Description:
 *
 * @Author: 香草物语
 * DateTime: 2021-07-19 20:40
 */
@RestController
public class GoodController {

    @Resource
    private GoodService goodService;

    @GetMapping("sell/good")
    public boolean sellGood(){
        return goodService.checkUserLogin("admin");
    }

}
